﻿                                                                                                                                                                    
@{
    ViewBag.Title = "会员管理";
    Layout = "~/Areas/Admin/Views/Shared/_LayoutCMS.cshtml";
}
@model LY.Entity.U_Member
@section htmlhead{
    <link href="~/Content/assets/css/Layout/css/main.css" rel="stylesheet" />
    <link href="~/Content/assets/css/plugin/validator.css" rel="stylesheet" />
}

<div class="container" style="height: 1000px;">
    <div id="forms" class="mt10">
        <div class="box">
            <div class="box_border">
                <div class="box_top"><b class="pl15">会员编辑</b></div>
                <div class="box_center">
                    <form method="post" id="frmEdit" action="@Url.Action("MemberSave")" class="jqtransform">
                        <input id="hideId" name="Id" value="@Model.ID" type="hidden" />
                        <h4 style="margin-left:15px">个人资料</h4>
                        <table class="form_table pt15 pb15"  border="0" cellpadding="0" cellspacing="0">
                            <tr>
                                <td class="td_right"><span style="color:red;">*</span>姓名:</td>
                                <td class="">
                                    <input type="text" name="RealName" id="RealName" value="@Model.RealName" class="input-text lh30" size="40">
                                    <input type="text" name="Name" id="Name" value="@Model.Name" class="input-text lh30" size="40" style="display:none">
                                </td>
                                <td class="td_right">性别：</td>
                                <td class="">
                                    @Html.ResourceRadioList("Sex", "GENDER", @Model.Sex, null)
                                </td>
                            </tr>
                            <tr>
                                <td class="td_right"><span style="color:red;">*</span>国籍：</td>
                                <td class="">
                                    <input type="text" name="Nationality" id="Nationality" value="@Model.Nationality" class="input-text lh30" size="40">
                                </td>
                                <td class="td_right">婚姻状况：</td>
                                <td class="">
                                    @Html.ResourceDropDownList("MARITALSTATUS", "MARITALSTATUS", @Model.Maritalstatus, new { @class="wh80 select"})
                                </td>
                            </tr>
                            <tr>
                                <td class="td_right"><span style="color:red;">*</span>证件类型：</td>
                                <td class="">
                                    @Html.ResourceRadioList("IDType", "IDType", @Model.IDType, null)
                                </td>
                                <td class="td_right"><span style="color:red;">*</span>证件号码：</td>
                                <td class="">
                                    <input type="text" name="IDCode" id="IDCode" value="@Model.IDCode" class="input-text lh30" size="40">
                                    <span style="color:red;" id="IDCodeValiate"></span>
                                </td>
                            </tr>
                            <tr>
                                <td class="td_right">最高学历：</td>
                                <td class="">
                                    @Html.ResourceDropDownList("EDUCATION", "EDUCATION", @Model.Education,new {@class="wh80 select" })
                                </td>
                                <td class="td_right"><span style="color:red;">*</span>  手机号码：</td>
                                <td class="">
                                    <input type="text" name="Mobilenumber" id="Mobilenumber"  value="@Model.Mobilenumber" class="input-text lh30" size="40">
                                    <span style="color:red;" id="MobilenumberValidate"></span>
                                </td>
                            </tr>
                            <tr>
                                <td class="td_right"><span style="color:red;">*</span>通讯地址：</td>
                                <td class="">
                                    <input type="text" name="Address" id="Address" value="@Model.Address" class="input-text lh30" size="40">
                                </td>
                                <td class="td_right"><span style="color:red;">*</span>邮政编码：</td>
                                <td class="">
                                    <input type="text" name="PostCode" id="PostCode" value="@Model.PostCode" class="input-text lh30" size="40">
                                </td>
                            </tr>
                            <tr>
                                <td class="td_right"><span style="color:red;">*</span>电子邮箱：</td>
                                <td class="">
                                    <input type="text" name="Email" id="Email" value="@Model.Email" class="input-text lh30" size="40">
                                    <span style="color:red;" id="EmailValidate"></span>
                                </td>
                                <td class="td_right">接待经理:</td>
                                <td class="">
                                    @*<input type="text" name="ManagerID" id="ManagerID" value="@Model.ManagerID" class="input-text lh30" size="40">*@
                                    @Html.ResourceDropDownList("ManagerID", "User", @Model.ManagerID,new {@class="wh80 select" })
                                </td>
                            </tr>
                            <tr>
                                <td class="td_right">推荐人编号：</td>
                                <td class="">
                                    <input type="text" name="RecommendCode" id="RecommendCode" value="@Model.RecommendCode" class="input-text lh30" size="40">
                                    @if (ViewBag.UserAccount != null)
                                    {
                                        @ViewBag.UserAccount.TotalAmount
                                    } 
                                </td>
                            </tr>
                        </table>
                        <br /><br />
                        <h4 style="margin-left:15px">紧急联系人资料</h4>
                        <table class="form_table pt15 pb15"  border="0" cellpadding="0" cellspacing="0">
                            <tr>
                                <td class="td_right"><span style="color:red;">*</span>姓名：</td>
                                <td class="">
                                    <input type="text"  name="EmergencyContactName" id="EmergencyContactName" value="@Model.EmergencyContactName" class="input-text lh30" size="40">
                                </td>
                                <td class="td_right">性别：</td>
                                <td class="">
                                    @Html.ResourceRadioList("EmergencyContactSex", "GENDER", @Model.Sex, null)
                                    @*@Html.ResourceDropDownList("EDUCATION", "EDUCATION", @Model.Education,new {@class="wh80 select" })*@
                                </td>
                            </tr>
                            <tr>
                                <td class="td_right"><span style="color:red;">*</span>证件类型：</td>
                                <td class="">
                                   @*@Html.ResourceDropDownList("CARCASE", "CARCASE", @Model.Carcase, new { @class="wh80 select"})*@
                                    @Html.ResourceRadioList("EmergencyContactIDType", "IDType", @Model.EmergencyContactIDType, null)
                                </td>
                                <td class="td_right"><span style="color:red;">*</span>与您的关系：</td>
                                <td class="">
                                    <input type="text" name="EmergencyContactRelation" id="EmergencyContactRelation" value="@Model.EmergencyContactRelation" class="input-text lh30" size="40">
                                </td>
                            </tr>
                            <tr>
                                <td class="td_right"><span style="color:red;">*</span>证件号码：</td>
                                <td class="">
                                     @*@Html.ResourceDropDownList("PURCHASE", "PURCHASE", Model.Purchaseconditions == null? 0: Model.Purchaseconditions, new { @class="wh80 select"})*@
                                    <input type="text" name="EmergencyContactIDCode" id="EmergencyContactIDCode" value="@Model.EmergencyContactIDCode" class="input-text lh30" size="40">
                                </td>
                                <td class="td_right"><span style="color:red;">*</span>移动电话：</td>
                                <td class="">
                                    <input type="text" name="EmergencyContactMobileNumber" id="EmergencyContactMobileNumber" value="@Model.EmergencyContactMobileNumber" class="input-text lh30" size="40">
                                </td>
                            </tr>
                            <tr>
                                <td class="td_right"><span style="color:red;">*</span>通讯地址：</td>
                                <td class="">
                                    <input type="text" name="EmergencyContactAddress" id="EmergencyContactAddress" value="@Model.EmergencyContactAddress" class="input-text lh30" size="40">
                                </td>
                                <td class="td_right"><span style="color:red;">*</span>邮政编码：</td>
                                <td class="">
                                    <input type="text" name="EmergencyContactPostCode" id="EmergencyContactPostCode" value="@Model.EmergencyContactPostCode" class="input-text lh30" size="40">
                                </td>
                            </tr>
                            <tr>
                                <td class="td_right">接收文件方式：</td>
                                <td class="">
                                    @Html.ResourceDropDownList("ReceiveFileType", "ReceiveFileType", @Model.ReceiveFileType ,null)
                                </td>
                            </tr>
                            @*<tr>
                                <td class="td_right"><span style="color:red;">*</span>  手机号码：</td>
                                <td class="">
                                    <input type="text" name="Mobilenumber" id="Mobilenumber" readonly="true" value="@Model.Mobilenumber" class="input-text lh30" size="40">
                                </td>
                            </tr>
                            <tr>
                                <td class="td_right">信用等级：</td>
                                <td class="">
                                    <input type="text" name="Creditrating" id="Creditrating" value="@Model.Creditrating" class="input-text lh30" size="40">
                                </td>
                            </tr>
                            <tr>
                                <td class="td_right">客服姓名：</td>
                                <td class="">
                                     @Html.ResourceDropDownList("CustomerID", "CustomerService", Model.CustomerID, new { @class="wh80 select"})
                                </td>
                            </tr>*@
                            <tr>
                                <td class="td_right">&nbsp;</td>
                                <td class="">
                                    <input id="btnSave" type="button" name="button" class="btn btn82 btn_save2" value="保存">
                                    <input id="btnReturn" type="button" name="button" class="btn btn82 btn_res" value="返回">
                                </td>
                            </tr>
                        </table>
                        <input type="hidden" name="MemberID" id="MemberID" value="@Model.MemberID" />
                    </form>
                </div>
            </div>
        </div>
    </div>
</div>
@section jssection{
    <script type="text/javascript">
        var util = {};
        var options = {

        };

    </script>
    <script src="~/Content/assets/plugins/validator/validator.js"></script>
    <script src="~/Content/assets/js/common.js"></script>
    <script src="~/Content/assets/app/member/memberedit.js"></script>
}

